namespace :clear do
  desc "clear all"
  task :all=>[:leagues,:bets,:sports,:matches,:users,:winstreaks,:prizes,:countries]

  desc "clear leagues"
  task :leagues=>:environment do
    League.destroy_all
  end

  desc "clear bets"
  task :bets=>:environment do
    Bet.destroy_all
  end

  desc "clear countries"
  task :countries=>:environment do
    Country.destroy_all
  end


  desc "clear teams"
  task :teams=>:environment do
    Team.destroy_all
  end

  desc "clear sports" 
  task :sports=>:environment do
    Sport.destroy_all
  end

  desc "clear matches"
  task :matches=>:environment do
    Match.destroy_all
  end

  desc "clear users"
  task :users=>:environment do
    User.destroy_all
  end

  desc "clear winstreak"
  task :winstreaks=>:environment do
    Winstreak.destroy_all
  end

  desc "clear prizes"
  task :prizes=>:environment do
    Prize.destroy_all
  end

end
